# Removed many unnecessary functions, and added functions in Snak to make it work well with spaces in the filenames
# Special Snak functions: $filesize for a full path, or tab delimited list and $filename which returns the flename from a path
# Also $listitem, and $listitemcount. The input command returns a tab delimeted list of files.
# Also $dccitem, $dccsendcount, and $dccreceivecount()
# Made numerous changes to support spaces in file names
# Removed the old purepak code that tried to find the filesize for of an item by DCC'ing it to yourself and extracting the size from the DCC request. Yuck.
# Added a number of comments to help people read the script more easily
# DCC autoaccept functions are much better done from inside Snak itself with the Actions list. They have been removed.
# use new Snak function $dccsendcount() instead of DCC.NSENDING
# changed message format and available commands to match iroffer more closely
# removed lspack
EVAL ^if (!(PPVERS)) {/echo *** This is not a stand-alone script, it must be loaded after purepak.irc;//exit}
if (match($0 SEND GET RAW TALK CHAT OFFER DOFFER LIST NOTICE LOAD SAVE CLOSE LIMIT RENAME TMSG NOTE SERVER TIMEOUT QUEUEING PUBLIST ADVERTISE ADINTERVAL CHANNEL))
{
if (match($0 RAW TALK RENAME TMSG SEND CHAT))
{
//dcc $*
}
if (match($0 CLOSE OFFER DOFFER LIST NOTICE LOAD SAVE LIMIT NOTE SERVER TIMEOUT QUEUEING PUBLIST ADVERTISE ADINTERVAL CHANNEL))
{
/dcc.ucmd.$0 $1-
}
}
{
/echo *** Unrecognized DCC command, type /pphelp dcc